package com.wanmait.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 出入记录
 */
@Data
@Accessors(chain = true)
@TableName(value = "access_record")
public class AccessRecord {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 车辆id
     */
    @TableField(value = "car_id")
    private Integer carId;

    /**
     * 0是come1是go
     */
    @TableField(value = "`go`")
    private Boolean go;

    /**
     * 出入时间
     */
    @TableField(value = "`time`")
    private Date time;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}